package com.yunfei.mapper.aiiidb;
import com.yunfei.api.v2.param.addSigerParam.Signers;
import com.yunfei.api.v2.param.faQiQianShu.FaQiDianZiHeTongQianShuParam;
import com.yunfei.api.v2.result.QiXiaoDianZiQianShuIsCancel.QuXiaoQianShuLiuChengIsCancelResult;
import com.yunfei.api.v2.result.zuoFeiXieYiSign.ZuoFeiXieYiSignResult;
import com.yunfei.mapper.BaseDao;
import com.yunfei.yunhetong.heTongSignManager.entity.HeTongSignManagerEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;
/**
*@tablename 查询合同签署相关信息
*@author zhengyunfei
*@createDate Thu Aug 08 09:31:33 CST 2019
*/ 
@Mapper
public interface HeTongSignInfoMapper<T> extends BaseDao<T>  {
	/**
	* @Description: 查询电子合同签署状态
	* @return: java.lang.String
	* @Author: zhengyunfei
	* @Date: 2019/8/8
	* @time:10:57
	*/
	String getStatus(Map<String, Object> paramMap);
	void updateStatus(HeTongSignManagerEntity param);
	/**
	* @Description: 获取电子合同编号
	* @Author: zhengyunfei
	* @Date: 2019/8/9
	* @time:14:51
	*/
	String getEhtNo(Map<String, Object> paramMap);
	/**
	* @Description: 查询合同签署者信息
	* @Author: zhengyunfei
	* @Date: 2019/8/22
	* @time:15:23
	*/
	List<Signers> querySignerInfo(Map<String,Object> paramMap);
	//生成作废协议的时候
	List<Signers> querySignerInfoForCreateZuoFeiXieYi(Map<String,Object> paramMap);
	void faQiDianZiHeTongQianShu(FaQiDianZiHeTongQianShuParam param);
   ///判断是否可取消（用户未录入账号信息前可取消，录入账号后可作废）
	QuXiaoQianShuLiuChengIsCancelResult isCancel(Map<String, Object> queryMap);
    //取消电子合同签署流程
	void cancel(Map<String, Object> queryMap);
	ZuoFeiXieYiSignResult getZuoFeiSign(Map<String, Object> queryMap);
	//1.判断合同模板 管理人公章 法人公章 作废协议是否上传
	int isUploadMuBan(Map<String, Object> queryMap);
	//2.判断合同需要录入的信息是否上传
	int isUploadLuRuInfo(Map<String, Object> queryMap);
	//3.判断电子合同编号是否充足
	String isEtNoChongZu(Map<String, Object> queryMap);
}

